<?php
/**
 * Textile
 * Converts textile markup to HTML inside the view.
 *
 * @package     Visi
 * @subpackage  View Helpers
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2011 Coalition Technologies <joel@coalitiontechnologies.com>
 * @version     $Id$
 */
require_once 'Textile/Textile.php';
class Visi_View_Helper_Textile extends Zend_View_Helper_Abstract {

    protected static $_textile;
    
    public function textile($text) {
    
        if (is_null(self::$_textile)) {
            self::$_textile = new Textile();
        }
        return self::$_textile->TextileThis($text);
    
    }

}
